/*
 * Copyright (C) 2010 Seapeak.Xu
 *
 * 5173mq client may be copied only under the terms of the GNU General
 * Public License V3, which may be found in the 5173mq source kit.
 *
 * Created on: 2010-10-27
 * Author: Seapeak.Xu
 */

#ifndef FOSTMQ_CLIENT
#define FOSTMQ_CLIENT

#include "fost_typedef.h"

#ifdef __cplusplus
extern "C"
{
#endif
	int push_by_id(const char *ip,const int port,const int timeout,const char *id,const char *value);
	int push_by_name(const char *ip,const int port,const int timeout,const char *name,const char *value); 
	int pop_by_id(const char *ip,const int port,const int timeout,const char *id,char *value);
	int pop_by_name(const char *ip,const int port,const int timeout,const char *name,char *value); 
	int delete_by_id(const char *ip,const int port,const int timeout,const char *id);
	int destroy_queue(const char *ip,const int port,const int timeout,const char *name);

#ifdef __cplusplus
}
#endif
#endif
